package com.detech.sbom.base.satoken.model;

import com.detech.sbom.base.satoken.enumtype.DeviceType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Set;

/**
 * 用户信息
 *
 */
@ApiModel("用户信息")
public class LoginUser implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 主键ID
	 */
	@ApiModelProperty(value = "主键ID")
	private String id;
	/**
	 * 帐号
	 */
	@ApiModelProperty(value = "帐号")
	private String username;
	/**
	 * 密码
	 */
	@ApiModelProperty(value = "密码")
	private String password;
	/**
	 * 姓名
	 */
	@ApiModelProperty(value = "姓名")
	private String realname;
	/**
	 * 年龄
	 */
	@ApiModelProperty(value = "年龄")
	private Integer age;
	/**
	 * 用户头像图片名称
	 */
	@ApiModelProperty(value = "用户头像图片名称")
	private String headPicture;

    /**
     * 微信openid
     */
    @ApiModelProperty(value = "微信openid")
    private String openid;

	/**
	 * 登录设备类型
	 */
	@ApiModelProperty(value = "登录设备类型")
	private DeviceType loginDeviceType;

    /**
     * 菜单权限
     */
    @ApiModelProperty(value = "菜单权限")
    private Set<String> menuPermission;

    /**
     * 角色权限
     */
    @ApiModelProperty(value = "角色权限")
    private Set<String> rolePermission;

	public LoginUser(){}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getRealname() {
		return realname;
	}

	public void setRealname(String realname) {
		this.realname = realname;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public String getHeadPicture() {
		return headPicture;
	}

	public void setHeadPicture(String headPicture) {
		this.headPicture = headPicture;
	}

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public Set<String> getMenuPermission() {
        return menuPermission;
    }

    public void setMenuPermission(Set<String> menuPermission) {
        this.menuPermission = menuPermission;
    }

    public Set<String> getRolePermission() {
        return rolePermission;
    }

    public void setRolePermission(Set<String> rolePermission) {
        this.rolePermission = rolePermission;
    }

    public DeviceType getLoginDeviceType() {
        return loginDeviceType;
    }

    public void setLoginDeviceType(DeviceType loginDeviceType) {
        this.loginDeviceType = loginDeviceType;
    }

}
